package com.xinzhi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xinzhi.pojo.User;
import com.xinzhi.utils.Result;

public interface IUserService extends IService<User>{
   /**
    * 登录
    *
    * @param user
    * @return
    */
   Result<User> login(User user);
   /**
    * 注册
    * @param user
    * @return
    */
   Result<User> register(User user);
   String createJwt(User user);
   /**
    * 查看用户信息
    * @return
    */
   String getUser();

   Result<User> updateUser( User user) ;
   Result<User> deleteUser();
   Result<User> secondLogin(String token);

}
